import { Component } from '@angular/core';
import { NavController ,AlertController} from 'ionic-angular';
import { HomePage } from '../home/home';
import { Camera, CameraOptions } from '@ionic-native/camera';
import { WorkSumPage } from '../work-sum/work-sum';
/**
 * 详细备注
 */
@Component({
  templateUrl: 'feedback.html'
})
export class FeedbackPage {
  private isChose: number = 1;//登录人员类型选择
  private autoManufacturers: string;
  //private alertCtrl:AlertController;
  private starList :any =[];
  private nostarList :any =[];
  constructor(
    public navCtrl: NavController,
    private alertCtrl: AlertController,
    private camera: Camera
  ) {
    this.starList.length = 2;
    this.nostarList.length = 5 - this.starList.length;
  }
  doConfirm(){
    const alert = this.alertCtrl.create({
      // title: '',
       subTitle: '反馈成功',
       buttons: ['确定']
     });
     alert.present();
  }
  doStar(ind){
    this.starList.length = ind+1;
    this.nostarList.length = 5 - ind -1;
  }
  doNoStar(ind){
    this.starList.length=ind+this.starList.length+1;
    this.nostarList.length = 5 - this.starList.length;
  }



}
